require 'page_base'
require 'watir-webdriver'

class LoginPage < PageBase

  def initialize(browser)
    super(browser)
  end

  def visit
    super("http://www.facebook.com")
  end

  def login_using(email, password)
    @browser.text_field(:id => "email").set email
    @browser.text_field(:id => "pass").set password
  end
end